package com.hue.gulimail.gulimailproduct.vo;

import com.hue.gulimail.gulimailproduct.entity.AttrEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class AttrGroupVo {
    private Long attrGroupId;

    private String attrGroupName;

    private Integer sort;

    private String descript;

    private String icon;

    private Long catelogId;

    private List<AttrEntity> attrs;

    public void addAttr(AttrEntity attr) {
        if (attrs == null) {
            attrs = new ArrayList<>();
        }
        attrs.add(attr);
    }
}
